class RecommendController < ApplicationController
  def index
    all_items = Recommend.ordered
    @top4 = all_items[0..3]
    rest = all_items[4...]
    @rest_rows = rest.each_slice((rest.count / 2.0).ceil)
    @column_size = (Recommend.count / 2.0).ceil
  end
end
